package com.liruo.test.annoall;

import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;

@Primary
@Component
public class MethodBean {
  private String name = "methodBean";
  public MethodBean() {
  }
  public MethodBean(String name) {
    this.name = name;
  }

  @Override
  public String toString() {
    return "M1{" +
        "name='" + name + '\'' +
        '}';
  }
}
